home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17521 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  45 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.eng.convex.com!arco!usenet
  3. From: Brian Leach <lasbfl@aai.arco.com>
  4. Subject: Re: Strange error
  5. X-Nntp-Posting-Host: 136.226.116.1
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <3172B913.1A03@aai.arco.com>
  8. Sender: usenet@news.arco.com
  9. Content-Transfer-Encoding: 7bit
  10. Organization: ARCO Alaska Inc.
  11. References: <1996Apr9.111558@winnie> <3172A47E.6FA@aai.arco.com>
  12. Mime-Version: 1.0
  13. Date: Mon, 15 Apr 1996 21:01:07 GMT
  14. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/755)
  15.  
  16. Brian Leach wrote:
  17. > zhou@wmich.edu wrote:
  18. > >
  19. > >         I have been stymied by an error which occurs during run time for
  20. > > certain programs I've written in TC++.  What ever I do I cannot find the
  21. > > cause of it.  The error says something to the effect of "Floating point
  22. > > error: Domain." or "Domain Error" and "abnormal program termination".  What
  23. > > is usually the cause of this?  Thanks.
  24. > >
  25. > >                         -Hanson
  26. > The probable cause is an invalid bit pattern for a floating point
  27. > value, possibly all of the bits in the mantissa are turned
  28. > off. Many compilers will treat these values as one of the
  29. > ANSI special values, +- infinity, Nan, or SNan. Some compilers
  30. > just report an error and quit.
  31. > Check for un-aligned structures which have been laid over each other,
  32. > possibly through a union. Could also occur if a memcopy has been done
  33. > from one structure type to one of a differenct type.
  34. > -Brian :-)
  35. Sorry,
  36.  
  37. Correction to my previous post, I meant to say all bits in the 
  38. mantissa are turned on, not off.
  39.  
  40. -Brian :-(
  41. lasbfl@aai.arco.com
  42.